import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';

import {HttpClient, HttpClientModule} from '@angular/common/http';
// mock数据  start
import {DelonMockModule} from '@delon/mock';


import * as MOCKDATA from '../../../_mock';
import {environment} from '../../environments/environment';

const MOCKMODULE = !environment.production ? [DelonMockModule.forRoot({data: MOCKDATA})] : [];


@NgModule({
  declarations: [],
  imports: [
    CommonModule,
    HttpClientModule,
    ...MOCKMODULE,   // mock数据
  ],
})
export class SharedModule {
}
